Fixed bug when reading lines with comments.