Fixed ddl bug