bugfix the bool switch