Changed bug for breaking ties by duration