fix numerics for IE8
Merge branch '1.x' into 2.x