Bug in join cleanup code.