Fix bug in old search challenges api
Merge pull request #336 from Ghost141/challenges_api_fix

Fix bug in old search challenges api