Fixed the texture caching error.