fix history toggle