corrected 2 bugs on the server handling lastActivityDates