Replaced WE's getSafeOpenFile with own one