fix the bug false in foreach in field data collector module