fix some bug in filemanager