There seems to be things wrong with Chaos magic (instead of defend)

Sometimes it does nothing. Sometimes one of my monsters just gets hit randomly. Volcano shows the animation but doesn’t do anything.

Edit: seems to be better when I restarted the game.

I can confirm that sometimes chaos magic does nothing.