Bug fixes into unregister and unsubscribe commands.