Fix compare type not updating after column change.