fix bug for confirm button