When making a pie filling that contains gelatin, you need to cool the mixture first until it is partially set before pouring it into the shell. To do this, you can either place the filling in the refrigerator for about an hour and stir occasionally, or cool the mixture in the pan directly over a bowl of ice water, which takes only about 15 minutes.