fix issue with not serializable field comparator