small bug fix on path update