Fixed refresh registers

Fixed privilege registers upon refresh.