let setTag works before addChild
(cherry picked from commit 2f671440ea292d9a3788123bfc0768aa1b678840)