Fixed bug in index.js requires