frest path bug fixed