fix register position