somehow redraw does not always work