Trying to fix ios crash