Fixed crash because of invalid numberformat
Fixed this crash in statistics too