fix computed index code generation