fix for cache-globals directive