Correct segfault introduced by 432c7ea78781a4ba084a1f00e5c034f30ded6cd0.

Closes #31.