Fixing the bug in the exit #3