fixed a problem when reading a corpus that contains urls