fix bug with destroyelement on single view