commit if button bug fix