Walking direction seems to be correctly restored now after casting. Entity can no longer move while casting casting (with most spells)