Improved treatment of overhanging ridges