Fixed iOS errors