If the middle isn't cooked, it might need more time in the oven. Also, make sure the oven temperature is right, as too low of heat can cause the pie to cook unevenly. See my Tips for how to prevent a runny filling.