Collapse of masonry walls often occurs when: