the sequence displays the last frame of the animation, but when rendering it repeats

Hi all!
I have a sequence with spaceship animation. after the end of the animation, the last frame of the animation is adjusted. in the viewport everything is displayed correctly, the animation is really on the last frame of the rest of the video, but as soon as I start rendering, the animation in the render starts all over again. It seems that in the view port everything is correct, but when it comes to rendering, the program believes that this animation should start over again after finishing (although only one segment of animation is specified in the sequence and there is nothing after it). Can you tell me how to fix this?