fix switching bool error