Fixed bug for editing element data.