Fix broken exit code