Bug fixed about registry linking port