Fixed: When start position equals end position getPath hangs in endless loop