fix scripting module failure to get element
Merge remote-tracking branch 'origin/master'