fix: add/delete flag should set at register function.