It happens. Just don't dwell on this "mistake". Learn from it and move on from it. Everyone has weaknesses and everyone does things they think are wrong and regret. In reality, all of these things are very small compared to what we have left to go through in our lives. It just a part of life that you have to learn to deal with.