Fixed bug on displaying badges on profile page