fix for ios platform