fixed runtime warning problem