Bug fix. Get register element did not use row-major.