fix the file meta data