PIM-3260 : ensure to set the attribute first