fix file entities