fix Hex_grid_from_layer_bounds script