fixed initialization order in broker

this patch fixes a bug that could cause brokers to halt