Fixed basic code generation.