If you have a bitter flavor in your cupcake, it may be because the variety of fresh lemon you chose was a bitter and sour lemon flavor. This is why I always suggest you taste the cake batter and add extra sweetener if needed before baking. Adding more sweetener can often save a baking failure or baking mistake.