fix shadow caching