Battlegrounds bug

I was really confused when this happened. However, There seems to be some type of bug that when things are done rapidly it can cause unintended things to happen.

I was playing demons, I had a malchezaar, a bran (non golden) , a wraith weaver, Tichondrius.

I played Razaar Dealer, took tavern spell and then refreshed the tavern, however, what ended up happening is that it got stuck and for some reason it kept triggering as though I was playing a demon after demon after demon until my turn ended and buffed all my minions until the timer ran out, so I didn’t get to spend the rest of my gold and the tavern refreshed at the very last second, however, since all my minions got buffed when they weren’t suppose to, I wasn’t to upset.