Fix bug in old search challenges api

Fix bug in old search challenges api