[fx]fix self.device is None