fix broken predictive beat detection