fixes not to occur exception when `nodes` is an Array(not String)