Hi, I want to switch totems during spell rotation ,but when i try for example:

/cast Auto Attack
/use 13
/use 14
/click BT4Button117
/cast Elemental Mastery
/click BT4Button118
/click BT4Button119
/click BT4Button120

17:
/equip totem1
/castsequence reset=combat/target flame shock,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,

18:
/equip totem2
/castsequence reset=combat lava burst,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

19:
/equip totem3
/castsequence reset=combat chain lightning,,,,,,,,,,,,,,,

20:
/equip totem3
/cast Lightning Bolt

there was problem between casting few Lightning Bolt in the end of rotation. i like to keep totem3 but in some reason macro toggles between totem2 and totem3.
any ideas?