Fixed a bug in IE & Firefox