fixing attribute clear editable bug