fixes bug in path for item edit