OPAL-2008, OPAL-2007, OPAL-2006, OPAL-2005 - fixed
OPAL-2008, OPAL-2007, OPAL-2006, OPAL-2005 - more fixes
Merge pull request #283 from kazoompa/bug-script-editor

OPAL-2008, OPAL-2007, OPAL-2006, OPAL-2005