fix generation crashes