Fixed NewScript (#341)