The butter might be too warm and melted before baking. This doesn't allow air pockets to form which causes those flaky layers.