fix check to use null instead, bug from CC