Fix throw exception