         if !session.isInPeriod(time: currentTime) {
             return false
         } else {
-            return session.remaining(time: currentTime) > 0
+            return session.remaining(currentTime) > 0
         }
     }
 

        var t: Int64!

        if cycle!.int64Value <= 0 {
            s = startDate!.int64Value
            t = time
        } else {
            s = startDate!.int64Value % cycle!.int64Value
            t = time % cycle!.int64Value
        }


                        for ex in exceptions! {
                            if isInSession(ex, future) {
                                isException = true
                                exDif = min(nextChange(future), exDif)
                            }
                        }
                        if isException {
