Fixed correct comparator