fixed the button disable bug