Fixed the script modes
Merge pull request #38 from kzvezdarov/fix-script-modes

Fixed the script modes