Fixed cases where lastestActivity would be null.