Fixed a runtime exception.