fix the ios code error