fix the GenericVisitorAdapter