fix double registation error