Dumb segfault fix.