fixed regexp to avoid of only one element already exists