redraw before error messages