fix for file entity