fixed hapi issue on index.js