Fixed a null pointer.