Fixes a NULL == 0 error