Fixed a bug with difference in the button index for the confirm method.