fixed bug when disabling ddl