Duplicated file generation in user defined save mode fixed