I made the following macro to free up button space on bars

/micon Bio II
/ac Miasma <tt>
/ac Miasma <t>
/wait 2
/ac Bio II <tt>
/ac Bio II <t>

My issue is it cast miasma fine but then i get error message saying cant cast Bio II on target whats the deal?