fixed bug in metronome