fix for wrong output path