fix EOF detection of incoming nodes