fixed code generation bug for declaring vars without assignment