bug in class statistics