fixed syntax bug in stats