simplify test and hopefully avoid spurious IE error