fixed bug regarding config.js