Fix typo in stats computation