fixes bug for empty list in regex creation