Additional fix for #2881, created regression in IE8