fixed logic error with maxPending