Habpanel button

Hi I am trying to get a button setup in habpanel to turn on&off a relay with a photon particle, if I make 2 buttons, one on & one off using “send a fixed command to a item” it works good, but if I use one button with "alternate item between 2 states"
the button will turn the relay on but not off.

Anyone have an idea how to get it to work with one button?

Thanks