Fix iOS4/IE compatibility