fixed the quiz and badge api calls