fixed the get address from tag and index problem