Corrected path creation