fix bug of invalid_clients