Fixed bug on IE for updating counters of words and characters