Corrected equals

Corrected equals on objects involved