Fix ended ribbons in Mountain Lion and Mavericks.