Fix names used in some exceptions.