Shortest path query problem

Thanks for your suggestion Anurag, this improves readability greatly!

The UIDs are correct, do you have any thoughts on the matter of the issue? Is it a bug?