Spell canceled on death

I experienced this with Perseus Medusa Spell and I believe it is not supposed to be that way.
If you cast the spell right before you die, the spell doesn’t have an effect (units don’t get petrified) but the spell is on cooldown if you revive. 
If I record this on video, I’ll upload it.

True especially when using siren skill, if your hero died while casting the spell itl be useless as the effect will be non effective.

 

Thanks for bringing this up, we will look into it.