Lodestar1Testv9

Fixed state switch