     day.booked = false
     day.adding = false
     day.isNew = day.owners.length is 0
-    day.myPrecious = lodash.any day.owners, (o)=> o.owner is @ownerId
+    day.myPrecious = lodash.any day.owners, (o)=> o.owner._id is @ownerId
     day.canBook = day.isNew or day.myPrecious
 
   updateDay: (day)=>
     old = lodash.find @_weeks, (w)-> day.format("DDMMYY") is w.format("DDMMYY")
-    console.group "Update #{day}"
-    console.log "old: #{old}"
-    console.log angular.copy old
-    console.log angular.copy day
-    console.groupEnd()
     old = angular.copy day
 
 angular
   .module 'huezNg.common.directives.calendar'
-  .controller 'calendarController', ['$scope', '$reactive', '$meteor', 'Notification', Calendar]
+  .controller 'calendarController', ['$scope', '$reactive', '$meteor', '$q', 'Notification', Calendar]

  o

class Calendar
  constructor: ($scope, $reactive, $meteor, @Notification)->
    $reactive(@).attach $scope

    console.group "Calendar Controller"

    @ownerId = Meteor.user()?._id ? 2
    @date = moment.utc().startOf('d')
    @weeks = []
    @_weeks = []
    @selections = []
    @removables = []
    @cancelations = []
    @owners = {}
    for i in [1..6]
      @owners["#{i}"] = randomColor()

    @bookings = []
    #@helpers(
      #reservations = ->
        #Bookings.find {}
    #)
    #@reservations = @helpers.reservations()

    @reservations = []
    Meteor.subscribe 'bookings',
      onReady: (subscription)=>
        @reservations = $meteor.collection Bookings
        @display()

    labels = moment.weekdays()
    dim = labels.shift()


  display: ->
    @weeks = []
    dates = [
      moment.utc(@date).startOf('month').startOf 'week'
      moment.utc(@date).endOf('month').endOf 'week'
    ]
    @range = moment.range(dates)
    weeks = []

    @range.by 'days', (day)=>
      obj = angular.copy day
      obj.unscoped = !day.isSame @date, 'month'
      obj.owners = @hazBooking day
      @initDay obj
      obj.booked = lodash.any( @bookings, (b)-> b.format('DDMMYY') is day.format('DDMMYY') )
      weeks.push obj
    @_weeks = weeks
    @weeks = lodash.chunk @_weeks, 7
