Fix iOS Safari issues