IE fix

Let's integrate this into our repo while I'm waiting to be accepted in the collective repo.