I am not sure how to recreate this bug as it happens rather unpredictability but somewhat often. Sometimes, when toggling options from, say, the preferences menu for one of the Spaces, the toggle switch will either not move or move and then immediately switch back. Manually sliding the toggles instead of tapping them does not fix the bug either. This is only fixed whenever I exit and re-enter the menu.
(I believe this is a visual bug only, as the actual setting seems to trigger and the switch's visual corrects itself to match whenever I exit and re-enter)