Fixed path creation issues