fix redraw of badge