fix path creation