fix : path cost