fixes output filename in single modde