Corrected nil class error in update_last_seen