If you bake the madeleines at too high of a heat, the outsides cook too rapidly, leaving them flat. Also check the expiration date of your baking powder in case it has expired.