Fixed timeout errors in IE 8