fixed exit_code