Fixed the TERRRIBLE bug caused by converting files

Removed auto-generated code and replaced with Custom.