fix path creation error