fix segfault: was a typo leading to unintended call