fix bug in Object.$equal