             # show event details
             self.calendar.on 'click', "ul.#{self.eventClass} a", (e) ->
                 that = $ @
-                day = that.closest('td')
+                day = that.closest('.drm-date')
                 eventId = that.data 'event'
                 fullDate =
                     month: self.months[day.data('month')]

            lastMonth = if currentMonth is 0 then 11 else currentMonth - 1
            
            if direction is 'prev'
                firstDay = calendarInner.find('td.drm-date').first().data 'date'
                lastDayOfPrevMonth = @getDaysInMonth lastMonth + 1, currentYear

                if firstDay is 1

                    day = $.inArray value, self.days
                    length = weeks.length
                    weekPattern = if weekInfo.weekNum % 2 is 0 then 'even' else 'odd'
                    eventWeeks = calendarInner.find ".#{weekPattern}-week"

                    $.each eventWeeks, (key, value) ->
                        that = $ value
                        weekLength = that.find(".drm-date").length
                        eventDates.push that.find(".#{self.classes.date}[data-day=#{day}]").data('date')

        addWeeklyEvents: (events, eventDates) =>
            self = @
