Fixed an IE bug and fixed a bug in sendPresence.