Fix equals method in InternalEvent.