fix arc and platform error