Fix segfault introduced in this PR.