Fixed fort.18 file reading issues