fixed texture caching