Appium Send Keys writing in different Field

Hi, I am trying to input value using the instance of the text box, but Appium sending the text to different text of another instance.

As below
//android.widget.EditText[@instance=“0”] 1
//android.widget.EditText[@instance=“1”] 2 -> This input is being written to Instance 0.

Please do the needful
Thanks in Advance.