Fixed line check for SAM files