bugfix in start time calculation