Switch comparator which was the wrong way round