[TASK] Address: Fix undefined address indexOf error