fix compare for result -> object and result -> contract