correcting exception type