fix non-arc issue: copy badge string when assigning it to view