[FIX] Fix bug in index.js