Fixed a race condition in broadcaster.