Fix path name not working in some browsers