Fix crash introduced in previous commit.