fixing bugs in persistence regarding message bus.