fix for equals logic in Datum