fix disable redraw button bug