Fix #152 redraw problem