fix generation issue with bad start