fixed selected attrvalue bug