Fixed bug in setConfig method.