fixed a bug in vn{SP}