fix bug for Element.plain method