added spell = null check and sends stop state