Fix failure on Christian Walde's smoke tester

Closes #20. Copy out the value of `p` instead of referring to the data inside of the `sv*`.
I'm not entirely sure why this works, but for now it is acceptable.