Fix for $instanceid used as element id