Changed the way the badge gets updated after sync