fix bugs in vn{SP}