fix IE8 exception when selecting date using keyboard