Gem of Panic Attcks cast twice - Attacking dead monsters the second time

I have a gem of panic attacks with the the cast twice modifier. The second time around, my monsters attack creatures that are already dead. Version 0.0.12