fix more lvm code