fix segfault (closes #13)