fix bug of register view