read regs bug fixes