improve badge number rendering