Wrong export in index.js