fix : fixToggleClass

Fix for #1851