fixed handling of keep-alive edges