Fixed small bug where when saving to repository the schema file name would be lost