Fix register view bug