Overmixing the batter or overbaking can lead to a cake-like texture. Aim for a fudgy center by mixing just until combined and keeping an eye on the baking time.