Fix bug with unregistered broadcast receiver