Fix file open issue with firefox