fix bug where could not search via security group