Fix inheritance check for IE.