fixed compile error (NULL)