Mistakes bring out the human side of your protagonist. Being human means being imperfect. No one believes a perfect protagonist who only decides based on his/her rational decisions. We are not weird that way. We act impulsive, we act because we care, we act because we want to survive. A protagonist shouldn’t be any different. What it basically comes down to is this: Doing the wrong thing for the right reasons.