fix attributedString not return bug