Fix cache system for attributed string in demo apps.