fix bug with more than one job per timestamp