correct the usage of UserData

CCDIC_FOREACH still couses bug