fix bug in generation of temp dict
upload_merge_1