Fix reading in of input file