Fixed code showed when exceptions occours in the first 8 lines