bugfix, definition code generate