fixes bug in Path()