Bugfix in making raster boxes.