Replace selected path