exception throw fix