fix ie detection logic