Bug - wrong named output files