More compatibility fixes for IE