Fix flickering after redrawing active elems