fix a bug which unsubscribe doesn't work correctly