All pastry does shrink a little when baked. If you find that your pastry is shrinking too much, your pastry may have been overworked when it was being prepared. Also, chilling the dough helps to prevent it from shrinking. I like to chill the dough before placing into the patty pan cases and then chilling again before baking - this definitely helps to minimise shrinking.