Fixing the file tile check