This could be because there is too much liquid in the filling or not enough cornstarch to help thicken the liquid. Also, your oven may not be hot enough to where the apples aren't cooking through.