Fix duplicate follow bug

Following the same entity twice caused duplicate edges to be created,
making later reads fail.