fix a bug

Fix the bug in data checking. in the previous code, the 0,false all the
other value will be skipped.