remove duplicate dict keys