Fixing relay rules template