fix delete table