fixed a few bugs in MetronomeSpanTree