fix: memory allocation off by 1 (nRegister)