fixed IE8 - trying to combine the old solution with the new IE8 one