fix iOS issues