android unregister method bug fix