               
               if expanded && (indexDifference == linearExpansionRange - 1) {
                 let labelID = (i > lastSelectedIndex) ? BreakPoint.LastDistorted : BreakPoint.FirstDistorted
-                let label = labelsLayer?.sublayers[labelID.toRaw()] as CATextLayer
+                let label = labelsLayer?.sublayers[labelID.rawValue] as CATextLayer
                 
                 label.opacity = 0.3
                 label.position = CGPoint(x: 0, y: offset + fontOffset)

    let latest = breakPoints[.Latest]
    let slope = earliest!.slopeTo(latest!)
    let temp = earliest!.projectOffset(from, slope: slope)
    return NSDate.dateWithTimeIntervalSinceReferenceDate(temp.ti)
  }

  private func distortedDateFrom(from: CGFloat) -> NSDate {

        
        // Always show the label for the last date
        if (expanded && (i == lastIndex-1) && (lastSelectedIndex? != lastIndex-1)) {
          let label = labelsLayer?.sublayers[BreakPoint.Latest.rawValue] as CATextLayer
          label.position = CGPoint(x: 0, y: offset + fontOffset)
          let date = dataSource!.dateAtIndex(i)
          label.string = JCMTimeSliderControl.shortDateFormatter.stringFromDate(date)
