Fixed _instantiate_file