fixed config API bug