fix for ios build