Fixing statistics bug