fix terminated clients in document form