fixed loss of first contact

first contact lost through adding extra linebuffer read