fixing scheduling bug, per #25 closes #26