fix the toggling