fix context redraw