fix path costs of the extended mode