Almost all of the heroes of the Bible were flawed (Jesus, and Mary excepted). They were human, and did human things. The message? Forgiveness and redemption.
Only Christ was sinless.
Mary was as flawed as you or I.