Question

i don’t understand why such a thing should happen. could you attach the fla, it becomes a lot easier.

The problem could be due to not adding a stop action at the last frame.