fixed keep-alive outedge bug (off-by-one error in edge position)