Fixed bug in Object.equals().