Fixed the error when element id's contain colons.