fix pid_file is invalid.