fix generation of backbone models