Fixes bug when destroying the table view