Fix assigning stats within instance of api.