fix runtime warning