fixes #13111 Due to a missing case we were treating a single target that was not equal to the one we were comparing to as a range open on the right.