fix for dynamic cubemap