Fix: Error: Can't modify immutable index.

Moved the `env.index` call after pre-compilation.
0.1.7