Fix null value in stats view