Replace agent's index with value of pointer size