Fix path generation.