prevent crash when comparing objects
cbugg: bug-757