fixing issue in stats