Fixed a bug in which afftables were not being properly garbage collected.