fix register some bug