Fixing globals var scopt
Merge pull request #3546 from murillodigital/master

Fixing globals var scopt