Spread a thin layer of apricot jam to the bottom layer of pastry. This will create a barrier between the filling and the pastry layer. You can also add a small layer of bread crumbs or crushed cornflakes before adding the filling.