bug fix with graph shortest path macros