Fixes failing tests (except IE8)