default state "end" not triggered - fixed