Fix the button disabled state.