VirtualProgram: fix erroneous regeneration of mains in the cache
FIX: error when combining clamped/draped data with other layers