Fix invalid txt