fix edges