Correcting Exception errors