Fixes for ios.