fix for ios issue