Fix file modal bug