Fixed toggle bug not displaying the correct value