metronome: fix logic error.