Toggle is really working

little correction after rewriting a bit of code.