read_gsm_file minor bug fixed