correct exit code