fix stats to differentiate between 0 and null