Fixed the issue when the location node is specified as an array