Fixed unexpected EOF errors on IE9