Feeling bad about something like this is perfectly normal. It's OK to feel bad, and you are not bad or terrible for this, your behaviour wasn't behaviour you're happy with but that doesn't make you a bad person, it makes you human. Try chastising your behavior instead of labeling yourself as bad.