Fixed updateElement method

Was not being applied to `this`, resulting in incorrect `this` reference in the actual update method.