fix bug with negatives cycle-time. fix issue #95