fix for edges not disappearing when appropriate