Fix number mode not working in IE8