Fix print badge bug