more fixes in badges table