Update old challenges api

1. Fix bug in old challenges api

2. Remove useless code in helper.js