Fixed an error caused by two Objects being compared.