fixed typo in readReg