Fix bug about subscribe/unsubscribe