What is the problem with putting protein in the center of a water box?

GROMACS version:2021
GROMACS modification: No
Hi. I try to put my protein in the center of water box with -c flag, but when I see the output file with the pymol, end segment of it is out of the box. How can I fix the problem?