Fixed issue with periods in element ids (#2238)