fixed tags updating in flatfiles