Fixes issue with fileManager