fix bug with badges