fix a bug in isNull