Fix initialization when no broadcasts or listeners are defined