fixed bug in SCRIPT parsing