fix lastSeen if browser closed