Where was wrong exception handling.