corrects both script and command widgets for every document
Merge pull request #201 from kamalpreetgrewal/master

corrects both script and command widgets for every document