Fix weird valgrind error. Minor performance win.