added timeout for ie8 behavior