Crouching in StateMachine

So whenever i try to crouch my Crouching node stucks and doesn’t return to Ground Node .

class_name CrouchState

@export var crouch_idle_anim: String = "crouch"
@export var stand_anim: String = "Run"
@export var stand_state: State

func state_input(event: InputEvent):
	if event.is_action_released("duck"):
		is_crouching = false

func _on_animation_tree_animation_finished(anim_name):
	if anim_name == crouch_idle_anim and !is_crouching:
		next_state = stand_state
		playback.travel(stand_anim)
		change_state()

func change_state():
	if next_state != null:
		get_parent().transition_to(next_state)```