small fixes for IE8 support