fix path generation