Fixed an issue where when d change, path didn't update