fix typo about NULL pointer