Changed method of layer activity check while rendering.
Rectangles become invisible in preview