Fix path creation