Fixed the basis vector problem in the code generation.