Fix file export from admin