Fix to null pointer.