fix for when modifying .badge we need to clear the previous badge classes