Changed equals(Node) to equals(Object).