Fix the bug for the method unsubscribe.