Fix equals() on Element.java