fix the problem with the ios platform