fixed a but when reading lines that don't have the word 'tags-->'