fix arc issues with osx version