Care for empty element in ids.