The XPATH I used is not a rule, it is a suggestion.
There are many ways to write a correct XPATH that will work on that specific page on that specific element, something like that might not work on other pages that will require a different kind of XPATH.
Make sure to examine your page and create a correct XPATH that will work in your situation.