fixed the problem of highlighting pathes, the most recent path is marked as orange and the rest pathes are marked as blue