Solved bug with edge values.