To stop the jam from running, just put a teaspoonful of jam in the center of the cookies. Don't use too much jam as the oven's heat makes the jam spread out.