added fix_open_with_duplicated for OSX alias