Fix update of elements.