fixed bug in reading registers from memory as a set

implementation was correct, just a typo