Fix crush during raster/vector preview