Fix incorect state transition in provisioner