fix prepare path