Changes made by Matej for IE8