Fixed createPath problem