Fix parsing of data for stats