Some fixes for IE8