fix defect where 0 value samples were treated as nulls