Fix #5. Segfaults were caused by the original SPTK bug