Agent upgrade (fixes a bug on IE 8 / XP )