Butter is very important to a shortbread cookie recipe so make sure you are using softened butter, not melted. Too cold and it won't mix, too melted and the cookies won't hold up and will flatten.