fixed bug with path initiation