Fix to deal with possible problem in end of line list
Merge pull request #119 from ssim/nu_line_fix

Fix to deal with possible problem in end of line list