fixed segfault in LVDStatement