fixed a bug in raster2