This is usually because you cooked it at to low of a temperature. Puff pastry needs to be baked in a hot oven at least 400-degrees.