cancel add client code fixed