Fix output path not being cleared before writing