fixed FileManager bugs