fixed the display of unwanted edges