fixed minor bug in stats