fix for ios and others