Fix path creation.