Flare mouse movement bug?

Flare mouse movement bug?

Hi,

 

I noticied that if you use mouse to move your hero and the mouse cursor ir too close to the hero, the hero starts to freneticly change directions very fast and doesn't really move to anywhere.

I've tried to check this in code, but was unable to fix.