fix bugs for regist
fix bugs