fix file entity