fixed render in index.js