fixing error with rasterization