fixed ordering issue with view stats