Custard pies firm up as they cool down, so the key is to give it plenty of time to cool to room temperature. We recommend at least 2 hours or chill it in the fridge for about 45 minutes.