add missing element ids