Fix for calculating extents during render.