fix UpdateState twice when SetupScript failed