add workaround in case of incomplete gen files