Fixed a mistake generate