path cost fix