Fixed an error in updating paths.