I don't think it's a problem of your module. I've seen this often enough with modules with lootable corpses and the like. It's also quite common that people forget to set a flag and when you click on the dead body it turns to face you.
I don't know a solution for this, but I'm pretty sure it exists.
In my case this happens immediately after the creature's death (if it happens), not when I click on the corpse.
Oh well, if anyone knows a solution, please share. '>