Even though Peter allowed that they acted ignorantly, he also insisted that Christ's death was not accidental. It wasn't a massive mistake. It was part of a prophetic plan.