Fixed a runtime error.