Fixed issue where textures where not being cached.