fixed problem with nulls in the stats