fixed client deletion