Fixed profile data when an error is raised