Fixed a bug where the refresh header would attempt to call refresh on a deallocated table.