fix bug in broadcastreceiver callback