fixed some error on ios