Make sure to thaw the pastry according to the package instructions, and handle it as little as possible to prevent the layers from sticking together. Brushing the beaten egg over the edges of the pastry crust will also help it puff up.