Though it is tempting to use lots of filling, using a minimal amount is essential to prevent overflowing. Firmly pinching the seams of the dough and using egg wash as glue, keeps the cookies from opening while baking.