fix logi error on state check for pilot cancellation