fixed runtime exception