fix bug can't operate files