legend counter fixed