Oh, the irony! Anne Hathaway -- who plays parrot Jewel in the animated film 'Rio' -- was posing for pictures with a (real-life) jewel-toned bird in Miami when the parrot playfully attacked her, pecking at the top of her head. To her credit, Hathaway, who was in town to celebrate the inaugural Miami Walk of Fame, still smiled cheerfully and maintained her poise. Check out the pictures below!

Hathaway opens her mouth in a gasp of surprise as the gorgeous blue parrot begins pecking away at her hair.

Aaron Davidson, Getty Images

Say cheese! It almost looks as if the bird is posing in this shot, as he looks at the camera with his mouth agape (much like hers!).

Aaron Davidson, Getty Images

Okay, now it's hurting! This shot looks a little more painful, as Hathaway is tilting her head and the parrot is seemingly digging even deeper. Ouch!

Aaron Davidson, Getty Images