Fix segfault in status builtin