Minor fix of 2D data generation scripts.