When the donkey saw the angel, it walked so close to one of the walls that Balaam's foot scraped against the wall. Balaam beat the donkey again.