Fix #170 redraw problem