Fixed the bugs in the Unsubscribe method.