Fixed bug in detecting IE