Fix an error with stage_files