Fix #168 redraw problem