fix bug: script's hash is treated as template variable