Fixed a problem with edge validation.