Compile fix for IOS