I have heard that modifier should be placed near the word or the phrase that modifies. In below sentence, the modifier "traveling" is placed next to the word "tourists." I feel the below sentence is correct. But feedback of this states that it is wrong, because it implies that the buildings may have been the ones traveling to more well-known memorial museums. Can anyone explain the reason?
Riddled with bullets, shattered by bombs, and hidden in alleys, the historic buildings in Lodz, Poland, were long ignored by tourists, traveling instead to more well-known memorial museums.
And the right answer is
Riddled with bullets, shattered by bombs, and hidden in alleys, the historic buildings in Lodz, Poland, were long ignored by tourists, who traveled instead to more well-known memorial museums.