fix change path invalid bug