Fix backwards AlertDialog button behavior