Fixed error in check in filterClients