Bug in output path generation