bug fixed on index.js to generator skeleton