fixing the wrong exception throw