fixing exception class