Found a bug in index.js