The internal resistors should be connected to the upper comparator. Also, that diagram just seems confusing. Something like this makes more sense: https://www.theengineeringknowledge.com/wp-content/uploads/2...