fixed badge bug