Fixed bug in new rasterizer code