small fix to redraw page