Fix set_capture_done in cmd_module