fix bug in filemanager extract method