insert filter for client and bug fixed