another bugfix.  this really points to the need for some tests...