Fix modal bug with disabled button.