Fixed compiling errors for FileManagement