yet another removeTable fix