Fix bug in file read-in.