fix file struct