Fixing start-end time related bugs.