Fixing issues with files