How to free the sprite from moveToObject

I’ll try to explain as clear as I can. So here is the thing.
I placed a few mobs in the scene. They all have a number to decide how far they can see.
If the player is overlap within the range and the direction the mob is facing. I called this.scene.physics.moveToObject to follow the player. If the player is out of range. then I called this.sprite.body.reset to stop the movement of the mob.
Although the mob did stop at the giving position. It still looking at the direction of the player. Any movement after that results to the mob stuck because while the setVelocityX or setVelocityY called it all conflicted with moveToObject trying to move the mob towards the player.
Is there anyway to free the sprite from moveToObject?

So I’ve been do some testing.
And it turns out that it is the phaser-raycaster plugin cause the mob to keep following the player.
I guess I have to destroy the ray that is attached to the mob and recreate it again so it won’t dragging the mob to where the player is.