Fix syntax error on ios part