update bug of register