Fixed bugs in writing the Bridge configuration.