Fix errors caused by shifts with no begin time