bug fix: setting prior edges to zero