Fix segfault in source command