check_duplicates is not a serializable attribute