fix bug where beats were being scheduled too far ahead