Fix NullPointerException while broadcasting