Trying to fix runtime exception.