Fixed NULL comparison operator