fixed crash on broadcast recieved