fix to avoid multi-hop relay with loops