fix for broken edges