Fixed bugs with input files lacking random points, grid or polarity