fixed bug in LVDStatement