fixed the dyn gen