Fixed null pointer.