Fix order of table dropping.