Fixed statistics bug