Grave Ghost Glitch

I recently noticed a glitch while using the electro dragon facing against an opponent using the grave Ghost. I placed my electro dragon along with some ground units and the grave ghost attacks them, becoming visible. While the ghost is visible my electro dragon starts attacking it. But then when my ground troops die and the grave ghost goes invisible again my electro dragon keeps attacking it (even though it’s invisible!). I do not know if this only happens specifically with electro dragon to grave ghost interactions or if it happens with multiple cards, but I thought I’d just tell you guys in case you’re interested in fixing it.