fix attribute string caching