Fix script directive