fix _dump_filename