fixed bug with path
reduced Vector2 allocation
fixed #23
fixed #22