Fix delete table error