fix isNull bug