ua: fix runtime warning