Fixing a small segfault.