fixed the bug in the challenges controller