Fix the issue in deleting tables.