Fix problems with Broadcast Receivers