Humans. We are apes. The particularly evolved kind, but still apes. Don't beat yourself up for making the mistake. It happens. The only issue is that it took you a moment to tell him. You should have told him right away, but it's obvious that you were in a very awkward and embarrassing position...