Fixed reading the files.

Duplicate values were ignored.