Fix card wait and error message in ExecuteScript