fix mismatch index when alert view button clicked.