Fix modulate segfault #158