Fixed a bug in the edge program.