Fixed bug in config serialization.