bugfix for toggleFormat selction