bug with usage of different comparators fixed