fix register numbering