fix bug in filemanager