fixed a bug in write configuration method.