Fixed incorrect code generation
Authored by: artyom-beilis 2010-08-31
Parent: [r1384]
Child: [r1386]