Fixed path editing in some cases