fixing exception