fix broken references to comparator functions.