Fixing the addition of element.id property