fixed exit code