fixed stats api view