Fixes bug with redirecting a socket from policies