fixed a bug in IE