correcting conv segfault