better handle redraw on resize issue