fix bug in challenge costs api