fix: attr error in case different types of objects are being compared