Fix UD behavior. State is destructed after changeState