another getRegisters fix