fixed issue with redraw