fixed bugs on the generate