fix a bug for register and link of changing area