fix ddl generator