             if events.day
                 $.each events.day, ->
                     day = $.inArray @, self.days
-                    eventWeekNum = self.getMonthWeekNum events.dayNum, day, eventMonth, eventYear
+                    _eventWeekNum = self.getMonthWeekNum events.dayNum, day, eventMonth, eventYear
 
                     if eventMonth is month
                         weeks.each ->
                             that = $ @
                             firstDate = that.find(".#{self.classes.date}").first().data 'date'
-                            weekInfo = self.getDatesInWeek eventMonth, firstDate, eventYear
-                            if eventWeekNum is weekInfo.weekNum
+                            _weekInfo = self.getDatesInWeek eventMonth, firstDate, eventYear
+                            if _eventWeekNum is _weekInfo.weekNum
                                 eventDates.push that.find(".#{self.classes.date}[data-day=#{day}]").data 'date'
             else
                 eventDates.push parseInt(events.eventDate, 10)
+
+            return
                 
         _addMonthlyEvents = (events, eventDates) ->
             # add monthly events


        _daysInFirstWeek = @daysPerWeek - _dayShift

        i = 1
        # get the number of dates in each week
        while _i <= _numberWeeks
            dates = []


            # get the week number
            if newDate in dates
                weekInfo.weekNum = _i - 1
                weekInfo.datesInWeek = dates

            _i = _i + 1
        weekInfo

    getWeekNumber: (month, newDate, year) =>
