Fixed lastMailedAt method.