updateinfo: fix the bug causing AttributeError