fix NULL: undeclared