Fixed a bug in file manager