fix Config.js related bugs