Fix label limiting logic