Fixed target dialog bug with flipping comparator incorrectly.