Fix exception instantiation.