bugfix for badge counts