Fix a few errors with File conversion