fixed bpm bug