fixed crash on last line of URL read. It's mostly a hack, but it works right now.