Fixed erroneous exit statement