fixed card type detection in IE8