You didn't bake it for enough time or you didn't use enough cornstarch to thicken the filling. If you used flour instead of cornstarch in a 1:1 ratio, that's the culprit because you need a bigger amount of flour compared to cornstarch to get the same thickening effect.