fixed ios crash