fix dropTable() method