Fixed local registration bug