fixed the bug 'no badge shown'