Fixed some errors in the config parser.