Fixing file errors