Fix error in get challenge costs api.