Fixed wrong exception handling