Fix a mistake when filter user resource.