Fixed a null pointer dereference crash