fix bug with elt not being wrapped