avoid duplicate element with the same IDs