[Bug 1009350] generated output looks not correct