fixed stats controller to return json