Error in recentering and rewrapping coordinates

GROMACS version:
GROMACS modification: Yes/No
Here post your question

Hi everyone,
Im facing error while executing the second command of Recentering and rewrapping coordinates tutorial of Gromacs.
Kindly help me in resolving this error. Im attaching the command i used as well as the error i faced.

COMMAND USED: mx trjconv -s md_1_50.tpr -f md_1_50_center.xtc -o start.pdb -dump 0

ERROR: Index[2614] 2615 is larger than the number of atoms in the
trajectory file (2614). There is a mismatch in the contents
of your -f, -s and/or -n files.

This error occurs when you did not save all the coordinates during the simulation (via compressed-x-grps). You need to create a corresponding .tpr file that has the same contents as the .xtc file. This can be done with gmx convert-tpr and a matching index group.

Thankyou so much for your suggestions.

As i’m new to GROMACS, i dont have much idea to perform different steps.
Can you please elaborate the above mentioned solution.