Fix wrong config access in index.js