slideUp looks to execute twice in IE

slideUp looks to execute twice in IE

I have written code for an accordion tab for practice and it works great except for one thing (which only happens in Internet Explorer):  when I close one of the tabs, the information will slide up like it should, but then when it hits the top, it opens and closes again very quickly.  This does not happen in Firefox (and in fact doesn't happen if I close the tab that starts open).  The js code I have is:
 
 $('#accordion h2').click(function() // This is the accordion code.
 {
  if ($(this).hasClass('current'))
  {
   $(this).next('.submenu').slideUp();
   $(this).removeClass('current');
  }
  else
  {
   $('#accordion div').slideUp();
   $('#accordion h2').removeClass('current');
   $(this).next('.submenu').slideDown();
   $(this).addClass('current');
  }
 });