Fix class cast exception when reparenting the welcome box.