fix tablemanager