fixed dictionary update overwrite issue