Fix for has_line
(cherry picked from commit 321e9a8)
Merge pull request #120 from jbzdak/has_line_fix

Fix for has_line