Fixes for compability of IE8